OPEN IMAGEBLOCK

This command will open an image block in memory, either to write to or read form.

  Syntax
OPEN IMAGEBLOCK Filename, Mode
  Parameters
Filename
String
The filename of the image block which will be saved to the disc if the Mode is zero, and read from if the Mode is one.
Mode
Integer
A mode of zero will create an image block and a mode of one will read a specified image block. In write mode zero, images are added to the image block automatically every time an image is loaded. In read mode one, images are loaded from the image block i

  Returns

This command does not return a value.

  Description

An image block can be used to store an array of images as a single block of memory, meaning you only need to load in a single file and internally load your images from there instead of using the disc. This decreases load times if your application uses a lot of images, plus protects image files by hiding them inside a large binary file. There is a fixed size of 64MB for any one image block, so you should not attempt to add more than 64MB work of image data into an image block or it will automatically cease adding image data.

  Example Code
No example code is provided for this command
  See also

IMAGE Commands Menu
Index